<template>
  <el-container style="width: 100%;height: 100%;">
    <!--头部-->
    <el-header class="header">
      <Header></Header>
    </el-header>
    <el-container class="left">
      <!--左侧菜单-->
      <el-aside
        style="background-color: rgb(238, 241, 246);height: 100%;"
        width="13%"
      >
        <TreeMenu style="min-width: 100%; display: inline-block;"></TreeMenu>
      </el-aside>
      <!--主页-->
      <el-main
        style="padding: 0;width: 85%;box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);border-radius: 4px;"
      >
        <div style="margin: 5px; width: 99%;">
          <router-view></router-view>
        </div>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Header from "@/views/header/index.vue";
import TreeMenu from "@/views/main/treeMenu/index.vue";

export default {
  name: "main_index",
  data() {
    return {};
  },
  methods: {},
  components: {
    Header,
    TreeMenu
  }
};
</script>

<style scoped>
.header {
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  margin: 5px;
}

.left {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  margin: 5px;
  height: 100%;
}
</style>
